﻿/*
 * TLLogicScene.h
 *
 *  Created on: Mar 19, 2015
 *      Author: yuliang
 */

#ifndef TLLOGICSCENE_H_
#define TLLOGICSCENE_H_

#include "LLogicBase.h"
#include "common/LSocket.h"
#include "Scene/SceneBattle.h"

class CTLLogicScene : public CTLLogicBase {
public:
	CTLLogicScene();
	virtual ~CTLLogicScene();

	// 初始化(资源/业务)
	virtual void LogicInit();
	// 捕获此业务模块的业务包,是返回true,否则返回false
	virtual bool CatchLogic(const ProtocolBase *head, char * data, uint32_t len, void * connect);

	void PersonUseSkill(const CSceneBattle::SceneBaseInfo& scene, const UseSkillInfo& info);
private:
	void start(const ProtocolBase *head, char * data, uint32_t len, LSocket* connect);
	void process(const ProtocolBase *head, char * data, uint32_t len, LSocket* connect);
	void complete(const ProtocolBase *head, char * data, uint32_t len, LSocket* connect);
};

#endif /* TLLOGICSCENE_H_ */
